<template>
  <div class="container">
    <Banner></Banner>
    <!-- Vue中借助router-link标签实现路由的切换-->
    <router-link replace class="btn btn-default" active-class="active" :to="{name:'主页'}">hom1</router-link>
    <router-link replace class="btn btn-default" active-class="active" to="/login">hom2</router-link>
    <!--指定组件的呈现位置-->
    <router-view></router-view>
  </div>
</template>

<script>
import Banner from "@/componebts/Banner.vue";
export default {
  name: "App",
  components:{Banner}
};

//126
</script>

<style>

</style>
